(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-article~page-company"],{"20f8":function(t,e,n){},"3a72":function(t,e,n){},4274:function(t,e,n){"use strict";n("8e64")},5790:function(t,e,n){},"5d47d":function(t,e,n){"use strict";n("3a72")},8352:function(t,e,n){},"8bcc":function(t,e,n){"use strict";n("5790")},"8e64":function(t,e,n){},a90a:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tm-company-widgets"},t._l(t.widgets,(function(e,i){return n(t.$options.presenters[e.type],{key:i,tag:"component",attrs:{type:e.type,"widget-data":e.data}})})),1)},r=[],a=n("2f62"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("WIDGET_APPLICATIONS")}},[n("ul",{staticClass:"tm-widget-applications__list"},t._l(t.widgetData.applications,(function(e){return n("li",{key:e.title,staticClass:"tm-widget-applications__item"},[n("article",{staticClass:"tm-widget-applications__card"},[n("aside",{staticClass:"tm-widget-applications__aside"},[n("img",{staticClass:"tm-widget-applications__image",attrs:{alt:"",src:e.imageUrl}})]),n("div",{staticClass:"tm-widget-applications__body"},[n("h3",{staticClass:"tm-widget-applications__card-title",domProps:{innerHTML:t._s(e.title)}}),n("p",{staticClass:"tm-widget-applications__card-description",domProps:{innerHTML:t._s(e.descriptionHtml)}}),n("ul",{staticClass:"tm-widget-applications__card-links"},t._l(e.links,(function(e){return n("li",{key:e.title+"-"+e.linkUrl,staticClass:"tm-widget-applications__card-link-item"},[n("a",{staticClass:"tm-widget-applications__card-link",attrs:{href:e.linkUrl,rel:"nofollow noreferrer",target:"_blank"},domProps:{innerHTML:t._s(e.title)}})])})),0)])])])})),0)])},l=[],o=n("19d1"),c={name:"TMWidgetApplications",components:{TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}}},p=c,d=(n("f889"),n("2877")),u=Object(d["a"])(p,s,l,!1,null,null,null),m=u.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{"header-variant":"borderless",title:t.msg("WIDGET_BANNER")}},[n(t.widgetData.imageLinkUrl?"a":"span",{tag:"component",staticClass:"tm-widget-banner__image-wrapper",attrs:{href:t.widgetData.imageLinkUrl}},[n("img",{staticClass:"tm-widget-banner__image",attrs:{alt:"",src:t.widgetData.imageUrl}})]),t.widgetData.textHtml?n("div",{staticClass:"tm-widget-banner__message",class:t.messageClasses,domProps:{innerHTML:t._s(t.widgetData.textHtml)}}):t._e()],1)},w=[],f={name:"TMWidgetBanner",components:{TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}},computed:{messageClasses:function(){var t=this.widgetData.textAlign;return t?"tm-widgetData-banner__message_align-".concat(t):null}}},_=f,b=(n("8bcc"),Object(d["a"])(_,g,w,!1,null,null,null)),O=b.exports,h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("WIDGET_FACEBOOK")}},[n("iframe",{staticStyle:{border:"none",overflow:"hidden"},attrs:{allowTransparency:"true",frameborder:"0",height:"220",scrolling:"no",src:t.src,width:"100%"}})])},k=[],y={name:"TMWidgetFacebook",components:{TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}},computed:{src:function(){var t=this.widgetData.linkUrl,e="width=260&height=300&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId";return"https://www.facebook.com/plugins/page.php?href=".concat(t,"&").concat(e)}}},T=y,j=Object(d["a"])(T,h,k,!1,null,null,null),D=j.exports,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("WIDGET_LINKS")}},[n("ul",{staticClass:"tm-widget-links__list"},t._l(t.widgetData.links,(function(e){return n("li",{key:e.title+"-"+e.linkUrl,staticClass:"tm-widget-links__item"},[n("a",{staticClass:"tm-widget-links__link",attrs:{href:e.linkUrl,rel:"nofollow noreferrer",target:"_blank"},domProps:{innerHTML:t._s(e.title)}}),n("small",{staticClass:"tm-widget-links__host",domProps:{textContent:t._s(e.linkHost)}})])})),0)])},v=[],M={name:"TMWidgetLinks",components:{TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}}},P=M,I=(n("ad29"),Object(d["a"])(P,C,v,!1,null,null,null)),E=I.exports,W=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{level:"2",tag:"aside",title:t.msg("WIDGET_NEWS")}},[n("ul",{staticClass:"tm-widget-news__list"},t._l(t.news,(function(e){return n("li",{key:e.title+"-"+e.linkUrl,staticClass:"tm-widget-news__item"},[n("a",{staticClass:"tm-widget-news__link",attrs:{href:e.linkUrl,rel:"nofollow noreferrer",target:"_blank"},domProps:{innerHTML:t._s(e.title)}}),n("small",{staticClass:"tm-widget-news__date"},[n("TMDatetime",{attrs:{date:e.date}})],1)])})),0)])},B=[],L=n("8fab");function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x={name:"TMWidgetNews",components:{TMDatetime:L["a"],TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}},computed:{news:function(){return this.widgetData.news.map((function(t){return A(A({},t),{},{date:new Date(t.date)})}))}}},K=x,U=(n("4274"),Object(d["a"])(K,W,B,!1,null,null,null)),H=U.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("WIDGET_TWITTER")}},[n("ul",{staticClass:"tm-widget-twitter__list"},t._l(t.tweets,(function(e){return n("li",{key:e.id,staticClass:"tm-widget-twitter__item"},[n("header",{staticClass:"tm-widget-twitter__header"},[n("a",{staticClass:"tm-widget-twitter__name",attrs:{href:"https://twitter.com/"+e.user.displayName,rel:"noreferrer nofollow",target:"_blank"},domProps:{textContent:t._s(e.user.name)}}),n("small",{staticClass:"tm-widget-twitter__date"},[n("a",{staticClass:"tm-widget-twitter__link",attrs:{href:e.tweetUrl,rel:"noreferrer nofollow",target:"_blank"}},[n("TMDatetime",{attrs:{date:e.date}})],1)])]),n("p",{staticClass:"tm-widget-twitter__message",domProps:{innerHTML:t._s(e.text)}})])})),0),n("a",{staticClass:"btn btn_solid btn_large tm-widget-twitter__follow-button",attrs:{href:t.twitterLink,rel:"nofollow noreferrer",target:"_blank"}},[t._v("\n    "+t._s(t.msg("WIDGET_TWITTER_FOLLOW",{name:t.widgetData.twitterName}))+"\n  ")])])},G=[];function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F={name:"TMWidgetTwitter",components:{TMDatetime:L["a"],TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0}},computed:{tweets:function(){return this.widgetData.tweets.slice(0,3).map((function(t){return R(R({},t),{},{date:new Date(t.date)})}))},twitterLink:function(){return"https://twitter.com/".concat(this.widgetData.twitterName)}}},J=F,z=(n("b119"),Object(d["a"])(J,q,G,!1,null,null,null)),Q=z.exports,X=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("WIDGET_VK")}},[n("script",{attrs:{async:"",src:"https://vk.com/js/api/openapi.js?63",type:"application/javascript"},on:{load:t.onLoad}}),n("div",{attrs:{id:t.elementId}})])},Y=[],Z={name:"TMWidgetVK",components:{TMBlock:o["a"]},props:{widgetData:{type:Object,required:!0},type:{type:String,required:!0}},data:function(){return{elementId:"widget-social-".concat(Math.random())}},methods:{onLoad:function(){window.VK&&window.VK.Widgets&&window.VK.Widgets.Group&&window.VK.Widgets.Group(this.elementId,{mode:0,width:"260",height:"300"},this.widgetData.id)}}},tt=Z,et=Object(d["a"])(tt,X,Y,!1,null,null,null),nt=et.exports;function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function at(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var st={name:"TMCompanyWidgets",props:{companyAlias:{type:String,required:!0}},presenters:{vk:nt,facebook:D,twitter:Q,news:H,links:E,banner:O,applications:m},computed:rt(rt(rt({},Object(a["c"])("global",["isDesktop"])),Object(a["e"])("companies",["companiesWidgets"])),{},{widgets:function(){var t=this.companiesWidgets[this.companyAlias];return t?t.filter((function(t){return!!t.data&&(("news"!==t.type||0!==t.data.news.length)&&("links"!==t.type||0!==t.data.links.length))})):[]}}),mounted:function(){this.isDesktop&&this.loadCompanyWidgets(this.companyAlias)},methods:rt({},Object(a["b"])("companies",["loadCompanyWidgets"]))},lt=st,ot=Object(d["a"])(lt,i,r,!1,null,null,null);e["a"]=ot.exports},ad29:function(t,e,n){"use strict";n("f939")},b119:function(t,e,n){"use strict";n("8352")},d43f:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TMBlock",{attrs:{title:t.msg("ADMINISTRATION_BLOCK_TITLE")}},t._l(t.items,(function(e){return n("a",{key:e.link,staticClass:"tm-administration-block__link",attrs:{href:e.link,target:"_blank"}},[t._v("\n    "+t._s(e.title)+"\n  ")])})),0)},r=[],a=n("19d1"),s={name:"TMCompanyAdministrationBlock",components:{TMBlock:a["a"]},props:{companyInfo:{type:Object,required:!0}},computed:{items:function(){return[{title:this.msg("ADMINISTRATION_BLOCK_CP"),link:"https://habr.com/company/".concat(this.companyInfo.alias,"/admin/")},{title:this.msg("ADMINISTRATION_BLOCK_CONTENT"),link:"https://tmtm.ru/services/content/"},{title:this.msg("ADMINISTRATION_BLOCK_DOCS"),link:"/docs/companies/preparations/"}]}}},l=s,o=(n("5d47d"),n("2877")),c=Object(o["a"])(l,i,r,!1,null,null,null);e["a"]=c.exports},f889:function(t,e,n){"use strict";n("20f8")},f939:function(t,e,n){}}]);
//# sourceMappingURL=page-article~page-company.8acf483a.js.map